package com.dbz.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("journal")
public class Journal {
    @TableId(type = IdType.UUID,value = "jid")
    private String jid;//日志记录id
    @TableField(value = "uname")
    private String uname;//用户
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "landTime")
    private Date landTime;//登陆时间
    @TableField(value = "url")
    private String url;//登陆路径
    @TableField(value = "scheme")
    private String scheme;//登陆协议
}
